package com.coolw.dynamic.thread.pool.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.coolw.common.api.PageResponse;
import com.coolw.dynamic.thread.pool.domain.dto.ThreadPoolStatDTO;
import com.coolw.dynamic.thread.pool.domain.request.ThreadPoolStatPageRequest;
import com.coolw.dynamic.thread.pool.entity.ThreadPoolStatEntity;

/**
 * 线程池统计信息Service
 *
 * @author coolw
 * @date 2024/5/17 15:16
 */
public interface ThreadPoolStatService extends IService<ThreadPoolStatEntity> {

    /**
     * 分页查询-线程池统计列表
     *
     * @param request 分页请求数据
     * @return 统计结果
     */
    PageResponse<ThreadPoolStatDTO> pageList(ThreadPoolStatPageRequest request);

    /**
     * 执行线程池统计
     *
     * @return 统计结果
     */
    ThreadPoolStatDTO execute();
}
